<?php
class TestAction extends Action
{
	/**  **/
	function index()
	{
		$content = "Test index content"; 
		$this->show($content);

		dump($this);


	}
	/**  **/
	public function page()
	{
		echo "list  page";

		$Dao = M("link");
		// 计算总数
		$count = $Dao->count();

		// 导入分页类
		import("@.ORG.Util.Page");
		// 实例化分页类
		$p = new Page($count, 10);
		// 分页显示输出
		$page = $p->show();

		// 当前页数据查询
		$list = $Dao->order('id ASC')->limit($p->firstRow.','.$p->listRows)->select();

		// 赋值赋值
		$this->assign('page', $page);
		$this->assign('list', $list);

		$this->display();
	}

	Public function verify(){
		// 导入Image类库
		import("@.ORG.Util.Image");
		Image::GBVerify();
	}


}